/* JSON工具特定样式 */
.modal-body {
    background: #ffffff !important;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    background: linear-gradient(to right, #f8f9fa, #f3f4f6);
    padding: 20px;
    border-radius: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    width: fit-content;
}

.action-btn {
    padding: 12px 24px;
    border: 1px solid rgba(76, 175, 80, 0.15);
    border-radius: 12px;
    background: #ffffff;
    color: #444;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.06);
    min-width: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.action-btn i {
    font-size: 16px;
    color: #4CAF50;
}

.action-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.action-btn:hover i {
    color: white;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.action-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.action-btn.active i {
    color: white;
}

.input-container {
    position: relative;
    display: flex;
    flex: 1;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.input-container::after {
    content: '';
    position: absolute;
    left: 66px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: #eaeaea;
    pointer-events: none;
}

.line-numbers {
    width: 54px;
    padding: 14px 10px;
    background: rgba(76, 175, 80, 0.02);
    border: 1px solid rgba(76, 175, 80, 0.08);
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-family: "SF Mono", "Monaco", "Menlo", monospace;
    font-size: 13px;
    line-height: 22px;
    color: #666;
    text-align: right;
    user-select: none;
    position: sticky;
    left: 0;
    overflow: hidden;
}

.line-number {
    height: 20px;
    padding-right: 8px;
    white-space: nowrap;
}

#jsonInput {
    flex: 1;
    padding: 14px 20px;
    padding-left: 10px;
    border: 1px solid rgba(76, 175, 80, 0.08);
    border-radius: 0 12px 12px 0;
    font-family: "SF Mono", "Monaco", "Menlo", monospace;
    font-size: 14px;
    line-height: 22px;
    resize: none;
    background: #ffffff;
    color: #2c3e50;
    height: 100%;
    white-space: pre;
    overflow: auto;
    tab-size: 2;
    transition: border-color 0.3s ease;
}

#jsonInput:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.08);
}

/* 滚动条样式 */
#jsonInput::-webkit-scrollbar {
    width: 8px;
}

#jsonInput::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

#jsonInput::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.2);
    border-radius: 4px;
}

#jsonInput::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.3);
}